#coding:utf-8
import time
import subprocess
i = 0
#每次操作的间隔时间取决于手机配置，配置越高时间越短
sleep_time = 0.5
while 1:
  #用popen设置shell=True不会弹出cmd框
  #process = subprocess.Popen('adb shell input tap 200 200',shell=True)
  time.sleep(sleep_time)
  process = subprocess.Popen('adb shell input tap 500 500',shell=True)
  i+=1
  print str(i) + 'clicks have been completed'